package com.tengol.demo.design.pattern.structural.decorator.v1;

/**
 * 多加一个鸡蛋的煎饼
 *
 * @author dongrui
 * @date 2019/03/06
 */
public class BattercakeWithEgg extends Battercake{
    @Override
    public String getDesc() {
        return super.getDesc() + "加一个鸡蛋";
    }

    @Override
    public int cost() {
        return super.cost() + 1;
    }
}
